package com.app.pojo.demo;

import java.io.Serializable;
import java.util.Date;
import java.util.Objects;

public class TestResultID implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -664318473222328972L;
	private String id; // 分区表中id 和testDate作为业务主键
	private Date testDate;

	public TestResultID() {
	}

	public TestResultID(String id, Date testDate) {
		this.id = id;
		this.testDate = testDate;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public Date getTestDate() {
		return testDate;
	}

	public void setTestDate(Date testDate) {
		this.testDate = testDate;
	}

	@Override
	public int hashCode() {
		return Objects.hash(id, testDate);
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		TestResultID other = (TestResultID) obj;
		return Objects.equals(id, other.id) && Objects.equals(testDate, other.testDate);
	}

}